package org.bluebee.billiardsbar.entity;

public class Administrator {
	private String admId;
	private String name;
	private String password;
	private String tele;
	
	public Administrator(String admId, String name, String password, String tele) {
		super();
		this.admId = admId;
		this.name = name;
		this.password = password;
		this.tele = tele;
	}
	


	public Administrator(String admId, String password) {
		super();
		this.admId = admId;
		this.password = password;
	}



	public Administrator() {
		super();
	}



	public String getAdmid() {
		return admId;
	}
	public void setAdmid(String admid) {
		this.admId = admid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String toString() {
		return "Administrator [admid=" + admId + ", name=" + name
				+ ", password=" + password + ", tele=" + tele + "]";
	}
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((admId == null) ? 0 : admId.hashCode());
		return result;
	}
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Administrator other = (Administrator) obj;
		if (admId == null) {
			if (other.admId != null)
				return false;
		} else if (!admId.equals(other.admId))
			return false;
		return true;
	}
	public String getTele() {
		return tele;
	}
	public void setTele(String tele) {
		this.tele = tele;
	}
}
